@spacing: 22px;
@line-color: #d7d7d7;
@line-dark-color: #ccc;
@admin-header-height: 48px;
@admin-min-width: 800px;
@admin-con-height: calc(100vh - 60px);
@admin-item-blue-bgc: rgb(36 137 242);

.flex-shrink {
    div,
    span,
    button {
        flex-shrink: 0;
    }
}

.flex-hidden {
    flex: 1;
    overflow: hidden;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
    .flex-shrink();
}

.flex-left {
    .flex-center();

    justify-content: flex-start;
}

.flex-between {
    .flex-center();

    justify-content: space-between;
}

.flex-end {
    .flex-center();

    justify-content: flex-end;
}

.flex-column {
    display: flex;
    flex-direction: column;
    .flex-shrink();
}

.button-hover {
    cursor: pointer;

    &:hover {
        opacity: 0.85;
    }
}

.item-hover {
    cursor: pointer;

    &:hover {
        // background-color: rgb(235 241 251);
        background-color: rgb(242 242 242);
    }
}

.nav-hover {
    cursor: pointer;

    &:hover {
        background-color: @admin-item-blue-bgc;
    }
}

.bar-hover {
    &:hover {
        transform: translateY(-5px);
        transition: all 0.2s;
        box-shadow: 0 0 15px #ccc;
    }
}

.img-contain {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.img-cover {
    .img-contain();

    object-fit: cover;
}

.text-ellipsis {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
